import request from '@/utils/request'

export const getBuildList = params => {
  return request({
    url: '/park/building',
    params
  })
}
// 删除楼宇
export const delBuliding = id => {
  return request({
    url: `/park/building/${id}`,
    method: 'DELETE'
  })
}
// 新增楼宇
export const addBuild = data => {
  return request({
    url: '/park/building',
    method: 'POST',
    data
  })
}
// 编辑楼宇
export const editBuild = data => {
  return request({
    url: `/park/building/${data.id}`,
    method: 'put',
    data
  })
}
